#ifndef SINGLE_COLOR_OBJECT_H
#define SINGLE_COLOR_OBJECT_H

#include <QVector4D>
#include "geometry/geometry_object.h"

class SingleColorObject : public GeometryObject {

    public:
        SingleColorObject() = default;
        virtual ~SingleColorObject() = default; 

        inline void setColor (float r, float g, float b, float opacity = 1.0f) {
            m_color.setX(r);
            m_color.setY(g);
            m_color.setZ(b);
            m_color.setW(opacity);
            m_circleColor = m_color * 0.8f;
            m_cylinderColor = m_color * 0.5f;
        };
        inline QVector4D &getCircleColor() {
            return m_circleColor;
        };
        inline QVector4D &getCylinderColor() {
            return m_cylinderColor;
        };

    private:
        QVector4D m_color, m_circleColor, m_cylinderColor;
};

#endif // SINGLE_COLOR_OBJECT_H
